/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const athletesRouter =
  {
    path: '/athletes',
    component: Layout,
    redirect: '/athletes',
    name: 'Athletes',
    meta: {
      title: 'Athletes',
      icon: 'athletes',
      roles: ['admin', 'doctor','head_coach', 'coach']
    },
    children: [
      {
        path: '/athletes',
        component: () => import('@/views/athletes/index'),
        name: 'Athletes',
        meta: { title: 'Athletes', breadcrumb: false, roles: ['admin', 'doctor', 'head_coach','coach'] }
      },
      {
        path: '/athletes/generalInformation',
        component: () => import('@/views/athletes/generalInformation'),
        name: 'generalInformation',
        meta: { title: 'Details', roles: ['admin', 'doctor','head_coach', 'coach'] },
        hidden: true
      }
      // { path: '/athletes/edit', component: () => import('@/views/home/edit'), name: 'markdown-demo', meta: { title: 'Add', breadcrumb: false}, hidden: true }
    ]
  }
export default athletesRouter
